package com.swlz.servlet;

import javax.servlet.annotation.WebServlet;

import com.swlz.R;
import com.swlz.dto.UserFormDTO;
import com.swlz.service.UserService;
import com.swlz.service.impl.UserServiceImpl;

@WebServlet("/reg.let")
public class RegServlet extends HttpServletSupport {

	private UserService service = new UserServiceImpl(); 
	
	public R<?> execute(UserFormDTO form){
		service.add(form);
		return R.ok();
	}
}
